<?
include "qrlib.php";
$id = intval($_GET['id']);
if(!$id) exit;
if(file_exists("qr/{$id}.png")) {
	header("Location: qr/{$id}.png");
	exit;
}
$url = "http://devel.test.fsecity.com/softdown/?act=d&id=" . $id;
QRcode::png($url, "qr/{$id}.png", 'L', 4, 2);
header("Location: qr/{$id}.png");